import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
import dp from './modules/dp.js'

Vue.use(Vuex)
// 除了生产环境都开启vuex严格模式，即只能通过 mutation修改state
const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    dp
  },
  actions,
  getters,
  strict: debug
})
